#include <string>
#include <iostream>
#include "pub/err.h"
#include "pub/log.h"
#include "biz/pub_sys.h"
#include "biz/pub_priv.h"
#include "test_pub_priv.h"

using namespace std;
using namespace oracle::occi;

TestPubPriv::TestPubPriv()
{
	sys = new PubSystem(conn);
	priv = new PubPriv(conn);
	sys->init();
	priv->sysStatus = sys->sysStatus;
}

TestPubPriv::~TestPubPriv()
{
	delete sys;
	delete priv;
}

void TestPubPriv::test_checkSys()
{
	Log::debug("开始测试 PubPriv::checkSys");
	priv->serviceCode = "101201";
	priv->acceptMethod = "0";
	priv->checkSys();
}

void TestPubPriv::test_checkAcctTrans()
{
	Log::debug("开始测试 PubPriv::checkAcctTrans");
	priv->serviceCode = "101201";
	priv->acceptMethod = "0";
	priv->transAcctStatus = "0";
	priv->checkAcctTrans();
}

void TestPubPriv::test_checkAcctTA()
{
	Log::debug("开始测试 PubPriv::checkAcctTA");
	priv->serviceCode = "101201";
	priv->acceptMethod = "0";
	priv->taAcctStatus = "0";
	priv->checkAcctTA();
}

void TestPubPriv::test_checkFund()
{
	Log::debug("开始测试 PubPriv::checkFund");
	priv->serviceCode = "101201";
	priv->acceptMethod = "0";
	priv->fundStatus = "0";
	priv->checkFund();
}
